from random import randrange, choice
from string import ascii_lowercase as lc

from time import ctime
maxsize = 9999999999  # 实践证明，ctime函数接收整数长度不能超过10位

tlds = ('com', 'edu', 'net', 'org', 'gov')
f = open('redata.txt', 'w')
for i in range(randrange(20, 31)):
    dtint = randrange(maxsize)
    dtstr = ctime(dtint)
    llen = randrange(4, 8)
    login = ''.join(choice(lc) for j in range(llen))
    dlen = randrange(llen, 13)
    dom = ''.join(choice(lc) for j in range(dlen))
    f.write(f'{dtstr}::{login}@{dom}.{choice(tlds)}::{dtint}-{llen}-{dlen}\n')
f.close()